import axios from './axios'

/**
 *  
    数据监测-隧道部位
 */
// 隧道部位列表
export function getTunnelPartList(params) {
    const url = '/ms/api/tunnel/part/list'
    return axios.get(url, params)
}
// 添加隧道部位
export function getTunnelPartAdd(params) {
    const url = '/ms/api/tunnel/part/add'
    return axios.post(url, params)
}
// 修改隧道部位
export function getTunnelPartEdit(params) {
    const url = '/ms/api/tunnel/part/edit'
    return axios.post(url, params)
}
// 删除隧道部位
export function getTunnelPartDel(params) {
    const url = '/ms/api/tunnel/part/del/'
    return axios.post(url+params)
}

/**
 *  
    数据监测-拱顶
 */
// 拱顶桩号列表
export function getTunnelVaultStakeList(params) {
    const url = '/ms/api/tunnel/vault/stake/list'
    return axios.get(url, params)
}
// 拱顶桩号统计
export function getTunnelVaultStakeStatistics(params) {
    const url = '/ms/api/tunnel/vault/stake/statistics'
    return axios.get(url, params)
}
// 拱顶桩号每日数据
export function getTunnelVaultStakeDayList(params) {
    const url = '/ms/api/tunnel/vault/stake/day/list'
    return axios.get(url, params)
}
// 拱顶删除桩号列表
export function getTunnelVaultDel(params) {
    const url = 'ms/api/tunnel/vault/del/'
    return axios.post(url+params)
}
// 拱顶删除每日数据
export function getTunnelVaultDayDel(params) {
    const url = 'ms/api/tunnel/vault/day/del/'
    return axios.post(url+params)
}
// 拱顶导入数据
export function getTunnelVaultImport(params) {
    const url = 'ms/api/tunnel/vault/import'
    return axios.post(url,params)
}

/**
 *  
    数据监测-净空
 */
// 净空桩号列表
export function getTunnelClearanceStakeList(params) {
    const url = '/ms/api/tunnel/clearance/stake/list'
    return axios.get(url, params)
}
// 净空桩号统计
export function getTunnelClearanceStakeStatistics(params) {
    const url = '/ms/api/tunnel/clearance/stake/statistics'
    return axios.get(url, params)
}
// 净空桩号每日数据
export function getTunnelClearanceStakeDayList(params) {
    const url = '/ms/api/tunnel/clearance/stake/day/list'
    return axios.get(url, params)
}
// 净空删除桩号列表
export function getTunnelClearanceDel(params) {
    const url = 'ms/api/tunnel/clearance/del/'
    return axios.post(url+params)
}
// 净空删除每日数据
export function getTunnelClearanceDayDel(params) {
    const url = 'ms/api/tunnel/clearance/day/del/'
    return axios.post(url+params)
}
// 净空导入数据
export function getTunnelClearanceImport(params) {
    const url = 'ms/api/tunnel/clearance/import'
    return axios.post(url,params)
}

/**
 *  
    隧道监测
 */
// 安全步距
export function getTunnelIntervalData(params) {
    const url = '/ms/api/tunnel/interval/data'
    return axios.get(url,params)
}
// 隧道检测人员定位
export function getTunnelCardData(params) {
    const url = '/ms/api/tunnel/card/data'
    return axios.get(url,params)
}

//隧道列表
export function getTunnelList(params) {
    const url = '/ms/api/tunnel/list'
    return axios.get(url,params)
}